import { Injectable } from '@angular/core';
import { UserInfo } from '../classes/user-info';
import { ChatBase } from '../classes/chat-base';

@Injectable({
  providedIn: 'root'
})
export class ChatService {
  user: UserInfo;
  chat: ChatBase;
  constructor() { }

  public login(pUser: UserInfo): boolean {
    this.user = pUser;
    return true;
  }
  public chating(pChat: ChatBase){
    this.chat = pChat;
  }
}
